#include <QtGui>
#include "mtqgraphicsview.h"
#include "TUIO/TuioClient.h"
int main(int argc, char **argv)
{
    QApplication app(argc, argv);


    QGraphicsScene* scene = new QGraphicsScene();
    MTQGraphicsView* view = new MTQGraphicsView(scene);

    QTuioListener *myListener = new QTuioListener();
    TuioClient *tuioClient = new TuioClient();
    tuioClient->addQTuioListener(myListener);
    tuioClient->connect();


    QObject::connect(myListener, SIGNAL(touch(int, double,double, int)),
                          dynamic_cast<MTQGraphicsView*>(view), SLOT(onTouch(int, double,double, int)));

    view->setFixedSize(QSize(800,600));
    view->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
    view->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
    view->showMaximized();

    view->show();
    return app.exec();
}
